package com.xclink.common.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.xclink.common.utils.DateUtil;
@Component
public class MyJob{
	@Scheduled(cron="0/2 0/2 * * * ?")   //每隔两分钟开始执行，每2秒执行一次  
	public void execute(){
		 System.out.println("ssm-one-Quartz的任务调度！！！"+DateUtil.getCurrDateTime());
		
	}
	@Scheduled(cron="0/5 * * * * ?")   //每5秒执行一次  
	public void send(){
		System.out.println("ssm-one-充值："+DateUtil.getCurrDateTime());
	}
	//
	@Scheduled(cron="0 12 11 11 * ?")   //每月的15号2点开始执行 
	public void send2(){
		System.out.println("ssm-one-充值2："+DateUtil.getCurrDateTime());
	}
}
